﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using SuperStarProject.DAO;

namespace SuperStarProject.Controllers
{
    public class NhaCungCapController : Controller
    {
        //
        // GET: /NhaCungCap/

        public ActionResult Index()
        {
            return View();
        }
        public ActionResult ShowAllNCC()
        {
            var lstNhaCungCap = NhaCungCapDAO.ShowAll();
            return View(lstNhaCungCap);
        }
        public ActionResult ShowAll()
        {
            var lstNhaCungCap = NhaCungCapDAO.ShowAll();
            return View(lstNhaCungCap);
        }
        public ActionResult ShowAllDaiLy()
        {
            var items = DaiLyDAO.ShowAll();
            return View(items);
        }
        public ActionResult ViewDetails(string manhacungcap)
        {
            var nhaCungCap = NhaCungCapDAO.ViewDetails(manhacungcap);
            return View(nhaCungCap);
        }

    }
}
